function ShowEventController() {
	
	var DELETE_PREFIX = "album";
	var CONTAINER_PREFIX = "albumContainer";
	
	//Bindings	
	this.deleteAlbum = deleteAlbum;

	function deleteAlbum(serverUrl,eventId,albumElement) {			
		
		//Averiguo el Id del album a partir del elemento.		
		var albumId = albumElement.replace(DELETE_PREFIX,"");		
		
		
		jQuery.ajax({
            url: serverUrl,
            type: "POST",
            datatype:"json",
            data: { "album_id": albumId,
            		"event_id": eventId },            
            async:false,		                
            success: function(){		                    	
            	// Ahora se borran en el cliente
            	jQuery("#"+CONTAINER_PREFIX+albumId).remove();
            },
            error: function(){		                		                				       
            	alert("Failure");		                   
            }	                
        });				
	}
	
}